#ifndef DISTANCE_FILTER_H
#define DISTANCE_FILTER_H
#include<iostream>
#include<vector>
#include<opencv2/opencv.hpp>
#include"predictmove.h"

using namespace cv;
using namespace std;
class Distance_filter
{
public:
    PredictMove* kalman;
    vector<double> dists;
    vector<double> Speeds;
    int max_size=10;
    int change_time;
public:
//    Distance_filter();
    Distance_filter(PredictMove* kalman1);
    double filting(double dis0);
    double calc_distance(vector<Point> _armor_points, int my_color);


};

#endif // DISTANCE_FILTER_H
